<div class="users form">
<div class="actions specific">
	<ul>

		<li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Segura que desea eliminar el usuario # %s?', true), $this->Form->value('User.username'))); ?></li>
	</ul>
</div>
<?php echo $this->Form->create('User');?>
	<fieldset>
		<legend><?php __('Editar Usuario'); ?></legend>
	<?php
		echo $this->Form->input('id', array('label' => 'Id'));
                echo $this->Form->input('last_name', array('label' => 'Apellido'));
		echo $this->Form->input('first_name', array('label' => 'Nombre'));
		echo $this->Form->input('username', array('label' => 'Nombre de Usuario'));
		echo $this->Form->input('level', array('label' => 'Nivel', 'type' => 'select', 'options' => array('Admin', 'Cerrajeria', 'Codificadas')));
		echo $this->Form->input('status', array('label' => 'Estado', 'type' => 'select', 'options' => array('Activo', 'Inactivo', 'Pendiente')));
		echo $this->Form->input('created', array('label' => 'Creado', 'type' => 'text'));
		echo $this->Form->input('last_login', array('type' => 'hidden'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#UserCreated").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>